<%@ page import="salesalert.User" %>



<div class="fieldcontain ${hasErrors(bean: userInstance, field: 'attends', 'error')} ">
	<label for="attends">
		<g:message code="user.attends.label" default="Attends" />
		
	</label>
	
<ul class="one-to-many">
<g:each in="${userInstance?.attends?}" var="a">
    <li><g:link controller="attend" action="show" id="${a.id}">${a?.encodeAsHTML()}</g:link></li>
</g:each>
<li class="add">
<g:link controller="attend" action="create" params="['user.id': userInstance?.id]">${message(code: 'default.add.label', args: [message(code: 'attend.label', default: 'Attend')])}</g:link>
</li>
</ul>

</div>

<div class="fieldcontain ${hasErrors(bean: userInstance, field: 'fb_id', 'error')} ">
	<label for="fb_id">
		<g:message code="user.fb_id.label" default="Fbid" />
		
	</label>
	<g:textField name="fb_id" value="${userInstance?.fb_id}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: userInstance, field: 'name', 'error')} ">
	<label for="name">
		<g:message code="user.name.label" default="Name" />
		
	</label>
	<g:textField name="name" value="${userInstance?.name}"/>
</div>

